<?php
$this->breadcrumbs=array(
	'Pembayaran'=>array('index'),
	$model['ID_Pembayaran'],
);

$this->menu=array(
	array('label'=>'Daftar Pembayaran', 'url'=>array('index')),
	array('label'=>'Lakukan Pembayaran', 'url'=>array('create')),
	array('label'=>'Perbarui Pembayaran', 'url'=>array('update', 'id'=>$model['ID_Pembayaran']), 'visible'=>Yii::app()->user->isAdmin()),
	array('label'=>'Hapus Pembayaran', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model['ID_Pembayaran']),'confirm'=>'Are you sure you want to delete this item?'), 'visible'=>Yii::app()->user->isAdmin()),
	array('label'=>'Mengelola Pembayaran', 'url'=>array('admin'), 'visible'=>Yii::app()->user->isAdmin()),
);
?>

<h1>Lihat Pembayaran #<?php echo $model['ID_Pembayaran']; ?></h1>

<?php $array = array('data'=>$model,'attributes' => array('ID_Pembayaran','Tgl_Pembayaran'));
      for($i = 0; $i < count($model)-2; $i++)
        $array['attributes'][$i+2] = 'ID_Pesanan'.($i+1);
?>

<?php $this->widget('zii.widgets.CDetailView', $array); ?>

<br/>
<h4 style="background:#E6F2FF">Pembayaran berhasil dilakukan
    <br/>
    <?php if(Yii::app()->user->isMember()){
            echo 'Saldo Anda : Rp'.(int)Member::model()->findByPk(Yii::app()->user->name)->Saldo.',00';
          }
    ?>
</h4>